<template>
  <div class="manual-relation-form-card-selection">
    <van-checkbox :shape="shape" :checked="checked"/>
  </div>
</template>
<script setup>
import {createProps} from '@/utils';
import {computed} from 'vue';

defineOptions({name: 'ManualRelationFormCardSelection'});
const props = defineProps({
  checked: createProps(Boolean),
  selectionType: createProps(String),
})
const shape = computed(() => {
  if (props.selectionType === 'multiple' || props.selectionType === 'checkbox') {
    return 'squire'
  }
  return 'round'
})
</script>
<style scoped lang="less">
.manual-relation-form-card-selection {
  padding: 10px;
}
</style>